// 详情用法请参考：https://www.uviewui.com/js/http.html
const http = uni.$u.http

// 登录
export const wechatLogin = params => http.post('/login/wechatLogin', params)

// 获取微信信息
export const wechatUserInfo = params => http.post('/login/wechatUserInfo', params)

// 获取用户信息
export const getInfo = params => http.get('/getInfo', params)

// 内容检测
export const msgSecCheck = params => http.post('/api/weChat/msgSecCheck', params)

// 保存用户信息
export const saveUserInfo = params => http.put('/system/user/profile', params)

// 用户积分信息
export const userIntegralInfo = params => http.get(`/system/integral/list/${params}`)

// 用户积分检测
export const userPointsCheck = params => http.post('/system/integral/userPointsCheck', params)

// 上传文件
export const uploadFile = params => http.post('/common/upload', params)

// 更新用户积分
export const updateIntegral = params => http.post('/system/user/updateIntegral', params)

// 微信手机登录
export const decryptPhone = params => http.post('/weChat/decryptPhone', params)

// 试卷省份接口
export const papersCategory = params => http.get(`/compare/papers/category/${params}`)

// 申论试卷省份年份接口
export const categoryYear = params => http.get(`/compare/papers/list/${params}`)

// 申论试卷详情接口
export const paperDetail = id => http.get(`/compare/papers/${id}`)

// 申论答案点赞接口
export const answerLike = answerId => http.post(`/compare/like/${answerId}`)

// 讲师列表
export const teacherList = params => http.get(`/function/teacher/list/${params}`)

// 新增讲师评分
export const evaluationAdd = params => http.post('/function/evaluation', params)

// 修改讲师评分
export const evaluationEdit = params => http.put('/function/evaluation', params)

// 删除讲师评分
export const evaluationDelete = id => http.delete(`/function/evaluation/${id}`)

// 检查能否评分
export const evaluationCheck = params => http.post('/function/evaluation/evaluationCheck', params)

//讲师评价列表
export const evaluationList = params => http.get(`/function/evaluation/list/${params}`)

// 文章列表
export const articleList = params => http.get(`/function/article/list/${params}`)

// 文章详情
export const articleDetail = id => http.get(`/function/article/${id}`)

// 愿望列表
export const wishList = params => http.get(`/function/wish/list/${params}`)

// 留言板列表
export const boardList = params => http.get(`/function/board/list/${params}`)

// 新增留言
export const boardAdd = params => http.post('/function/board', params)

// 新增愿望
export const wishAdd = params => http.post('/function/wish', params)

// 修改愿望
export const wishEdit = params => http.put('/function/wish', params)

// 删除愿望
export const wishDelete = id => http.delete(`/function/wish/${id}`)

// 检查用户是否许愿
export const wishCheck = params => http.post('/function/wish/wishCheck', params)

// 公告列表
export const noticeList = params => http.get('/system/notice/list')

// 新增收藏
export const collectAdd = params => http.post('/function/collect', params)

// 时政列表
export const hotnewsQuestionList = params => http.get(`/function/question/list/${params}`)

// 个人打卡列表
export const markList = () => http.get('/function/mark/list');


// 小组成员打卡列表
export const markParamsList = params => http.get(`/function/mark/groupList/${params}`)

// 小组成员今日未打卡列表
export const unMarkParamsList = params => http.get(`/function/mark/groupUnPunchList/${params}`)

// 小组成员昨日未打卡列表
export const yesterdayUnMarkParamsList = params => http.get(`/function/mark/groupYesterdayUnPunchList/${params}`)

// 小组成员月度未打卡列表
export const monthUnMarkParamsList = params => http.get(`/function/mark/groupMonthUnPunchList/${params}`)

// 小组成员月度学习时长
export const sumMonthStudyDurationList = params => http.get(`/function/mark/sumMonthStudyDurationByGroup/${params}`)

// 小组成员月度刷题量
export const sumMonthQuestionCountList = params => http.get(`/function/mark/sumMonthQuestionCountByGroup/${params}`)

// 新增打卡
export const markAdd = params => http.post('/function/mark', params)

// 查看打卡
export const markDetail = id => http.get(`/function/mark/${id}`)

// 修改打卡
export const markEdit = params => http.put('/function/mark', params)

// 删除打卡
export const markDelete = id => http.delete(`/function/mark/${id}`)

// 部门列表
export const deptList = () => http.get('/system/dept/list');

// 学习小组列表
export const groupList = () => http.get('/function/group/list');

// 新增学习小组
export const groupAdd = params => http.post('/function/group', params)

// 更新学习小组
export const groupEdit =params => http.put('/function/group', params)

// 查看学习小组
export const groupDetail = id => http.get(`/function/group/${id}`)

// 删除学习小组
export const groupDelete = id => http.post(`/function/group/${id}`)

// 学习小组成员列表
export const groupMemberList =params => http.get(`/function/usergroup/list/${params}`)

// 退出学习小组
export const groupExit = id => http.post(`/function/usergroup/${id}`)

export const groupMemberDelete = params => http.post('/function/usergroup/delete', params)

// 新增学习小组成员
export const groupMemberAdd = params => http.post('/function/usergroup', params)

// 模考列表
export const examReviewList = params => http.get(`/function/review/list/${params}`)

// 查看模考详情
export const examReviewDetail = id => http.get(`/function/review/${id}`)

// 查看模考能力
export const examReviewPersonal = id => http.get(`/function/review/personal/${id}`)

// 新增模考复盘
export const examReviewAdd = params => http.post('/function/review', params)

// 更新模考详情
export const examReviewEdit = params => http.put('/function/review', params)

// 删除模考复盘
export const examReviewDelete = id => http.delete(`/function/review/${id}`)

// 统计小组模考情况
export const groupExamStatistics = id => http.get(`/function/review/groupStatistics/${id}`)

// 成语学习列表
export const idiomList = params => http.get(`/function/idiom/list/${params}`)

// 速算记录列表
export const estimateRecordList = params => http.get(`/function/record/list/${params}`)

// 速算记录新增
export const estimateRecordAdd = params => http.post('/function/record', params)

// 名言热词列表
export const famousQuotesList = params => http.get(`/function/nouns/list/${params}`)

// 上岸火力值列表
export const firepowerRankingList = params => http.get(`/function/review/getFirepowerRanking/${params}`)

// 排行榜信息
export const rankingInfo = params => http.get(`/function/mark/rankingInfo/${params}`)

// PK房间新增
export const pkRoomAdd = params => http.post('/function/pkRoom', params)

// PK房间用户新增
export const pkRoomUserAdd = params => http.post('/function/pkRoomUser', params)

// PK房间用户更新
export const pkRoomUserEdit  = params => http.put('/function/pkRoomUser', params)

// PK房间用户列表
export const pkRoomUserList = params => http.get(`/function/pkRoomUser/list/${params}`)


// 公考岗位列表
export const applicationList = params => http.get(`/function/application/list/${params}`)











